package com.mycat.core.service;

import com.mycat.core.mapper.BookMapper;
import com.mycat.core.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("bookService")
public class BookServiceImpl implements BookService{

    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> queryAll(){
        List<Book> books = bookMapper.queryAll();
        return books;
    }

    @Override
    public Book queryById(int bid) {
        return bookMapper.queryById(bid);
    }

    @Override
    public void deleteById(int bid) {

    }

    @Override
    public void update(Book book) {

    }

    @Override
    public void insert(Book book) {

    }
}
